package cn.walls1717.wallsmall.order.feign;

import cn.walls1717.wallsmall.order.pojo.po.MemberReceiveAddressDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 用户Feign
 *
 * @author walls1717
 * @since 2022/11/18 15:40
 **/
@FeignClient("wallsmall-member")
public interface MemberFeignService {

    /**
     * 根据memberId获取会员收货地址
     *
     * @param memberId memberId
     * @return 会员收货地址集合
     */
    @GetMapping("/member/memberreceiveaddress/{memberId}/addresses")
    List<MemberReceiveAddressDO> listAddressByMemberId(@PathVariable("memberId") Long memberId);
}
